package com.waiting.exception;

/**
 * @Description 异常测试
 * @Author bjweitingting
 * @Date 2018/12/10
 **/
public class Child extends Parent {
    public static void test() throws Throwable {
       throw new NullPointerException();
    }

    public static void main(String[] args) {
        try {
            test();
            } catch (Throwable throwable) {
            throwable.printStackTrace();
            System.out.println(throwable.toString());
        }
    }
}
